<?php

/**
 * Description of Filter
 *
 * @author Cristian
 */
class Filter {

    public $address;
    public $postalCode;
    public $propertyName;
    public $propertyCategory;
    public $amenities;
    public $maxStarRating;
    public $minStarRating;
    public $minRate;
    public $maxRate;
    public $supplierType;
    public $numberOfBedRooms;
    public $sort;
    public $maxRatePlanCount;
    public $RoomGroup;

    /*public function Filter($args)
    {
        foreach ($args as $key => $value) {
                $this->$key = $value;
            }
    }*/
    //public function Filter
	//public function getRoomGroupRest(){
		
//	}
	
	public function getRoomGroupRest() {
        $result = array();
        for ($i = 0; $i < count($this->Room); $i++) {
            $result ["room" . ($i + 1)] = $this->Room[$i + 1]->numberOfAdults;
            for ($j = 0; $j < count($this->Room[$i + 1]->childAges); $j++) {
                $result ["room" . ($i + 1)] .= "," . $this->Room[$i + 1]->childAges[$j];
            }
        }
        return $result;
    }
    
}

?>
